package com.Repository;import com.User.User;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.context.annotation.Bean;import org.springframework.stereotype.Repository;@Repositorypublic class UserRepository {    User user;    @Autowired    public UserRepository(User user)    {        this.user = user;        this.user.setAge(18);        this.user.setName("张三");        this.user.setId(1);    }    public User getUser()    {        return this.user;    }}